package com.dao.impl;

import com.dao.UserDao;
import com.domain.User;
import com.utils.DataUtils;

import java.util.List;

public class UserDaoimpl implements UserDao {
    //查看方法实现
    @Override
    public List<User> selctAll() {

        return DataUtils.readAll();
    }

    //覆盖方法
    @Override
    public void writeAll(List<User> allUsers) {
        DataUtils.writeAll(allUsers);
    }
}
